package com.apexcode.system.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.sql.DataSource;

@RestController
public class DataSourceTestController {

    @Autowired
    private DataSource dataSource;

    @GetMapping("/datasource-type")
    public String getDataSourceType() {
        System.out.println("修改");
        return "DataSource type: " + dataSource.getClass().getName();
    }
}
